//
//  JZHomeNewCell.m
//  NuoMi
//
//  Created by liangyi on 15/12/4.
//  Copyright © 2015年 liangyi. All rights reserved.
//

#import "JZHomeNewCell.h"

@implementation JZHomeNewCell
- (void)awakeFromNib {
    // Initialization code
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier menuArray:(NSMutableArray *)menuArray
{
    [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        
        JZHomeuserBlockModel *userBlockModel = menuArray[0];
        
        NSString *title = userBlockModel.longAdvName;
        NSString *subtitle = userBlockModel.longAdvDesc;
        NSString *urlString = userBlockModel.pictureUrl;
        
        
        self.titleLabel = [[UILabel alloc]init];
        self.titleLabel.frame= CGRectMake(10, 10, 300, 30);
        self.titleLabel.font = [UIFont systemFontOfSize:15];
        
        [self.contentView addSubview:self.titleLabel];
        self.subtitleLabel = [[UILabel alloc]init];
        self.subtitleLabel.frame = CGRectMake(10, 40, 300, 30);
        [self.contentView addSubview:self.subtitleLabel];
        self.subtitleLabel.font = [UIFont systemFontOfSize:13];
        self.subtitleLabel.textColor = [UIColor grayColor];
        self.titleLabel.text = title;
        self.subtitleLabel.text = subtitle;
        self.imgView =[[UIImageView alloc]initWithFrame:CGRectMake(240, 10, 60, 60)];
        
        [self.contentView addSubview:self.imgView];
        
        
        [self.imgView sd_setImageWithURL:[NSURL URLWithString:urlString] placeholderImage:[UIImage imageNamed:@"ugc_photo"]];

    }
    return self;

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

-(void)setHomeNewDataDic:(NSDictionary *)homeNewDataDic{
   }


@end
